//
//  KDDatePickerView.h
//  警用舆情平台
//
//  Created by 魏强 on 15/5/25.
//  Copyright (c) 2015年 魏强. All rights reserved.
//

#import <UIKit/UIKit.h>
@protocol KDDatePickerViewDelegate;
@interface KDDatePickerView : UIButton
@property (nonatomic, weak) id<KDDatePickerViewDelegate> delegate;
typedef NS_ENUM(NSUInteger, KDDatePickerType) {
    KDDatePickerTypeBegin,
    KDDatePickerTypeEnd
};
/**
 *  弹出选择器
 *
 *  @param type    选择器类型：
 *  @param curDate <#curDate description#>
 */
+ (instancetype )showWithType:(KDDatePickerType)type andDate:(NSDate *)curDate;

/**
 *   这里填入的是“begin”或“end”
 */
+ (instancetype)showDatePickerViewWithType:(KDDatePickerType)type andDate:(NSDate *)curDate;
/**
 *  关闭选择器
 */
- (void)hideDatePickerView;
+ (void)hide;
@end
@protocol KDDatePickerViewDelegate <NSObject>

- (void)datePickerView:(KDDatePickerView *)pickerView settingBtnClickWithDate:(NSDate *)date andType:(KDDatePickerType)type;
@optional
- (void)cancelBtnClick;
@end